{extend name="main/index" /}
{block name="main"}


<!-- Start right content -->
<div class="content-page">
    <!-- ============================================================== -->
    <!-- Start Content here -->
    <!-- ============================================================== -->
    <div class="content">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#">首页</a>
        </li>
        <li class="active">用户管理</li>

        <div class="row">
            <div class="col-md-12">
                <p>
                    给 <b>{$name['name']}</b> 分配权限
                </p>

                <form action="{:url('admin/role/saveRole')}" method='post'>
                    <p style="width:600px">
                        {volist name="list" id="v"}
                        <input type="checkbox" name="role[]" value="{$v['id']}" {if condition="in_array($v['id'],$arr) eq true"}checked{/if}> {$v['name']}
                        &nbsp;
                        &nbsp;
                        &nbsp;&nbsp;&nbsp;
                        {/volist}
                    </p>
                    <input type="hidden" name="rid" value="{$id}">
                    <input type="submit" value="保存" class="btn btn-primary">

                </form>

            </div>
        </div>


    </div>


</div>
<!-- End right content -->









{/block}